//
//  JLTableViewCell.m
//  项目三
//
//  Created by rimi on 15/9/28.
//  Copyright (c) 2015年 rimi. All rights reserved.
//

#import "JLTableViewCell.h"

@interface JLTableViewCell ()

@end

@implementation JLTableViewCell

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    self.selectedBackgroundView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"首页-1_07_07"]];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self addSubview:self.headImageView];
        [self addSubview:self.nameImageView];
    }
    return self;
}
#pragma mark - getter
- (UIImageView *)headImageView {

    if (!_headImageView) {
        _headImageView = [[UIImageView alloc] initWithFrame:DHFlexibleFrame(CGRectMake(0, 0, 62, 73))];
    }
    return _headImageView;
}

- (UIImageView *)nameImageView {

    if (!_nameImageView) {
        _nameImageView = [[UIImageView alloc] initWithFrame:DHFlexibleFrame(CGRectMake(69, 24, 68, 18))];
    }
    return _nameImageView;
}
@end
